package com.wanke.dao;

import java.util.List;

import com.wanke.entity.Banji;
import com.wanke.entity.Teacher;

public interface BanjiDao {

	void persist(Banji transientInstance);

	void attachDirty(Banji instance);

	void attachClean(Banji instance);

	void delete(Banji persistentInstance);

	Banji merge(Banji detachedInstance);

	Banji findById(int id);

	List findByExample(Banji instance);
	
	Banji findByName(String name);

	Banji findByNameAndTeacher(String name,Teacher teacher);
	
	public List<Banji> getBjByTeachId(int id);
}